package com.ffms.entity;


import java.util.Date;

public class Money {
    private int id;
    private String flag;
    private int money;
    private String time;
    private FamilyMember familyMember;
    private int mid;

    public Money(int id, String flag, int money, String time, FamilyMember familyMember) {
        this.id = id;
        this.flag = flag;
        this.money = money;
        this.time = time;
        this.familyMember = familyMember;
    }

    public Money(int id, String flag, String money) {
        this.id = id;
        this.flag = flag;
        this.money = Integer.parseInt(money);
    }

    public Money(String flag, String money, String time, String mid) {
        this.flag = flag;
        this.money = Integer.parseInt(money);
        this.time = time;
        this.mid = Integer.parseInt(mid);
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getFlag() {
        return flag;
    }

    public void setFlag(String flag) {
        this.flag = flag;
    }

    public int getMoney() {
        return money;
    }

    public void setMoney(int money) {
        this.money = money;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public FamilyMember getFamilyMember() {
        return familyMember;
    }

    public void setFamilyMember(FamilyMember familyMember) {
        this.familyMember = familyMember;
    }

    public int getMid() {
        return mid;
    }

    public void setMid(int mid) {
        this.mid = mid;
    }

    @Override
    public String toString() {
        return "Money{" +
                "id=" + id +
                ", flag='" + flag + '\'' +
                ", money=" + money +
                ", time=" + time +
                ", familyMember=" + familyMember +
                ", mid=" + mid +
                '}';
    }
}
